import type { RouteRecordRaw } from 'vue-router'
import { UserType } from '@/types/user'

export const adminRoutes: RouteRecordRaw[] = [
  {
    path: '/admin',
    name: 'Admin',
    component: () => import('@/layouts/MainLayout.vue'),
    meta: {
      title: '系统管理',
      // roles: [UserType.ADMIN],
      icon: 'SettingOutlined'
    },
    children: [
      {
        path: 'organization',
        name: 'Organization',
        component: () => import('@/views/admin/organization/index.vue'),
        meta: {
          title: '组织架构',
          icon: 'ClusterOutlined'
        }
      },
      {
        path: 'student',
        name: 'admin-student',
        component: () => import('@/views/admin/user/student/index.vue'),
        meta: {
          title: '学生管理',
          icon: 'TeamOutlined'
        }
      },
      {
        path: 'teacher',
        name: 'admin-teacher',
        component: () => import('@/views/admin/user/teacher/index.vue'),
        meta: {
          title: '教师管理',
          icon: 'SolutionOutlined'
        }
      },
      {
        path: 'notification',
        name: 'adminNotificationManagement',
        component: () => import('@/views/notification/index.vue'),
        meta: {
          title: '通知管理',
          icon: 'BellOutlined'
        }
      },
    ]
  }
] 